<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="javascript:void(0);">收件入库</a>
</div>
<form id="form" action="{url('mobile/index')}" method="post">
<div class="table-search fn-clear">
<ul>
<li>
    <span class="fn-tar">IMEI号:</span>
    <span class="sinput"><input class="input w80" type="text" name="imei" value="{$imei}" /></span>
</li>
<li>
    <span class="fn-tar">门店号:</span>
    <span class="sinput">
<select class="select" name="supplier_id">
    <option value="" selected="selected"></option>
{loop $supplier_lists $vo} 
    <option value="{$vo['id']}" {if $supplier_id ==$vo['id']} selected="selected"{/if}>{$vo['name']}</option>
{/loop}
</select>
    </span>
</li>
<li>
    <span class="fn-tar">跟踪号:</span>
    <span class="sinput"><input class="input w80" type="text" name="number" value="{$number}" /></span>
</li>
<li>
    <span class="fn-tar">DHL快递号:</span>
    <span class="sinput"><input class="input w60" type="text" name="ems_sn" value="{$ems_sn}" /></span>
</li>
<li>  
    <span class="fn-tar">产品名称:</span>
    <span class="sinput"><input class="input w100" type="text" name="mobile_name" value="{$mobile_name}" /></span>
</li>
<li>
    <span class="fn-tar">产品类型:</span>
    <span class="sinput">
<select class="select" name="producttype_id">
    <option value="" {if !$producttype_id} selected="selected"{/if}></option>
{loop $producttype_lists $vo} 
    <option value="{$vo['id']}" {if $producttype_id ==$vo['id']} selected="selected"{/if}>{$vo['name']}</option>
{/loop}
</select>
    </span>
</li>
<li>
    <span class="fn-tar">厂商:</span>
    <span class="sinput">
<select class="select" name="manufacturer_id">
    <option value="" {if !$manufacturer_id} selected="selected"{/if}></option>
{loop $manufacturer_lists $vo} 
    <option value="{$vo['id']}" {if $manufacturer_id ==$vo['id']} selected="selected"{/if}>{$vo['name']}</option>
{/loop}
</select>
    </span>
</li>
<li>
    <span class="fn-tar">运营商:</span>
    <span class="sinput">
<select class="select" name="unicom_id">
    <option value="" {if !$unicom_id} selected="selected"{/if}></option>
{loop $unicom_lists $vo} 
    <option value="{$vo['id']}" {if $unicom_id ==$vo['id']} selected="selected"{/if}>{$vo['name']}</option>
{/loop}
</select>
    </span>
</li>
<li><input type="submit" value="查找" class="button button-green submit" /></li>
</ul>
</div>
</form>
<div class="table-head fn-clear"> 
    <div class="fn-l">
        <a href="{url('mobile/add')}" class="button button-blue">
            <i class="iconfont icon-tianjia"></i> 单件预入库
        </a>
        <a href="{url('mobile/excel')}" class="button button-green">
            <i class="iconfont icon-tianjia"></i> 批量预入库
        </a>
    </div>
</div>
<div class="m10">
<table class="table table-border">
<thead>
    <tr>
        <th class="fn-tac w140">跟踪号</th>
        <th class="fn-tac w100">门店号</th>
        <th class="fn-tac w100">IMEI号</th> 
        <th>产品名称</th>
        <th class="fn-tac w100">DHL快递号</th>
        <th>发件地址</th>
        <th class="fn-tac w110">邮寄时间</th>
        <th class="fn-tac w100">门店收货日期</th>
        <th class="fn-tac w100">门店受理日期</th>
        <th class="fn-tac w100">操作</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac"><a title="手机入库单详情" href="javascript:void(0);" url="{url('mobile/reads',array(id=>$vo['id']))}" class="win">{$vo['number']}</a></td>
    <td class="fn-tac">{$vo['supplier_name']}</td>
    <td class="fn-tac">{$vo['imei']}</td>
    <td>{$producttype_name[$vo['producttype_id']]}</td>
    <td class="fn-tac">{$vo['ems_sn']}</td>
    <td>{$vo['come_address']}</td>
    <td class="fn-tac">{date('Y-m-d',$vo['ems_time'])}</td>
    <td class="fn-tac">{date('Y-m-d',$vo['ems_take_time'])}</td>
    <td class="fn-tac">{date('Y-m-d',$vo['accept_time'])}</td>
    <td class="fn-tac tip">
    {if $vo['package_id']}
    <a title="编辑" href="{url('package/edit',array('package_id'=>$vo['package_id'],id=>$vo['id']))}">编辑</a> / 
    {else}
    <a title="编辑" href="{url('mobile/edit',array(id=>$vo['id']))}">编辑</a> / 
    {/if}
    <a href="javascript:void(0);" class="del" title="删除" url="{url('mobile/del',array(id=>$vo['id'],act=>del))}">删除</a></td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
  $('.del').click(function(){$(this).del();});
  $('.win').click(function(){$(this).win();});
  $('#form').forms({types:'post'});
})
</script>
